package cn.signalpha.modules.com.excel;

import cn.signalpha.modules.com.excel.converter.UserPlaceStatusConverter;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import lombok.Data;

import java.io.Serializable;

/**
 * UserExcel
 *
 * @author signalpha
 */
@Data
@ColumnWidth(20)
@HeadRowHeight(20)
@ContentRowHeight(18)
public class UserPlaceExcel implements Serializable {
	private static final long serialVersionUID = 1L;

	@ExcelProperty(value = "分销员id")
	private String userId;
	@ExcelProperty(value = "分销员头像")
	private String userAvatar;
	@ExcelProperty(value = "分销员手机")
	private String userMobile;
	@ExcelProperty(value = "分销员昵称")
	private String userNickName;
	@ExcelProperty(value = "分销员状态", converter = UserPlaceStatusConverter.class)
	private Integer placeStatus;

	@ExcelProperty(value = "推荐人id")
	private String parentId;
	@ExcelProperty(value = "推荐人头像")
	private String parentAvatar;
	@ExcelProperty(value = "推荐人手机")
	private String parentMobile;
	@ExcelProperty(value = "推荐人昵称")
	private String parentNickName;

	@ExcelProperty(value = "直推用户数")
	private Long directCount;
	@ExcelProperty(value = "间推用户数")
	private Long indirectCount;

}
